package com.cencat.framework.core.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cencat.framework.core.dto.PageQuery;
import com.cencat.framework.core.dto.PageResult;
import com.cencat.framework.core.entity.BaseEntity;

import java.util.List;

/**
 * 基础Service接口
 */
public interface BaseService<T extends BaseEntity> extends IService<T> {
    
    PageResult<T> page(PageQuery pageQuery);
    
    PageResult<T> page(PageQuery pageQuery, Wrapper<T> queryWrapper);
    
    List<T> listByCondition(Wrapper<T> queryWrapper);
}